From: Jasper St. Pierre Date: Wed, 2 Mar 2011 21:18:42 +0000 (-0500) Subject: st-entry: Support a different color for selected text X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~8082 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f524138a649e3f700f71dfcadb411e290b9e988d;p=gnome-shell.git st-entry: Support a different color for selected text This should improve readability in text entries where the text color is very close to the color of the selection. https://bugzilla.gnome.org/show_bug.cgi?id=643768 --- diff --git a/src/st/st-entry.c b/src/st/st-entry.c index d70475d9d..d96782458 100644 --- a/src/st/st-entry.c +++ b/src/st/st-entry.c @@ -209,6 +209,9 @@ st_entry_style_changed (StWidget *self) if (st_theme_node_lookup_color (theme_node, "selection-background-color", FALSE, &color)) clutter_text_set_selection_color (CLUTTER_TEXT (priv->entry), &color); + if (st_theme_node_lookup_color (theme_node, "selected-color", FALSE, &color)) + clutter_text_set_selected_text_color (CLUTTER_TEXT (priv->entry), &color); + font = st_theme_node_get_font (theme_node); font_string = pango_font_description_to_string (font); clutter_text_set_font_name (CLUTTER_TEXT (priv->entry), font_string);